import request from './index'

export function getAllTags() {
  return request.get('/tag/')
}
export function createTagRequest(data: { name: string }) {
  return request.post('/tag/', data)
}

export function deleteTagRequest(id: number) {
  return request.delete(`/tag/${id}`)
}

export function updateTagRequest(data: { id: number; name: string }) {
  return request.put('/tag/', data)
}